package com.chenl.provider.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class MatchsUtil {
    /**
     * 校验字符串中是否存在汉字
     * @param str
     * @return
     */
    public static boolean containsChineseCharacter(String str) {
        Pattern pattern = Pattern.compile("[\\u4e00-\\u9fa5]");
        Matcher matcher = pattern.matcher(str);
        return matcher.find();
    }
}
